package com.tong.hao.zuul.hystrix;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName ToFallbackConf
 * @Date 2019/11/9 20:27
 * @Description 微服务异常回退配置
 * @Version 1.0
 * @author 友野浩二
 */
@Configuration
@Slf4j
public class ToFallbackConf {

    public ToFallbackConf() {
        log.info("Zuul Spring boot启动时创建com.tong.hao.zuul.hystrix.ToFallbackConf对象");
    }

    @Bean
    public TongOnlineAcFallback tongOnlineAcFallback() {
        return new TongOnlineAcFallback();
    }

}
